package com.chang.cheng.toutiaoserver.login.controller.apis;


import com.chang.cheng.toutiaoserver.model.common.dtos.ResponseResult;
import com.chang.cheng.toutiaoserver.model.user.pojos.AppUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface LoginControllerApi {

    ResponseResult login(AppUser user);
    ResponseResult sendSms(Long mobile, HttpServletRequest request);


    @GetMapping ("user")
    ResponseResult getUser();

    @GetMapping ("user/channels")
    ResponseResult getChannels();
}
